<?php
	define('RUN_KATANA', true);
	require('includes/config.php');
	require('includes/loader.php');
	require('includes/core.php');
	/* HTML HEAD */
	if(file_exists(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/html_head.php'))
	{ require(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/html_head.php'); }
	else
	{ require(TEMPLATES_CORE_PATH.'html_head.php'); }
	/* HTML HEAD END */
	
	if(file_exists(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/index.php'))
	{ require(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/index.php'); }
	else
	{ require(TEMPLATES_CORE_PATH.'/layout/index.php'); }
	
	/* HTML FOOT */
	if(file_exists(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/html_foot.php'))
	{ require(TEMPLATES_PATH.'sites/'.$katana->Id.'/layout/html_foot.php'); }
	else
	{ require(TEMPLATES_CORE_PATH.'html_foot.php'); }
	/* HTML FOOT END */
	require('includes/unloader.php');
?>